package org.kealinghornets.nxtdroid;

import org.kealinghornets.nxtdroid.NXT.NXT;
import org.kealinghornets.nxtdroid.NXT.NXTThread;

/**
 * Created by chuah on 11/12/14.
 */
public class TheBox {
    extends NXTThread


    public TheBox() {
         setNXTThreadName("TheBox");
    }

    public void run() {
        runMotor(PORT_A);
        runMotor(PORT_B);
        wait(2000);
        stopMotor(PORT_A);
        stopMotor(Port_B);
        runMotor(Port_A, 100);
        runMotor(Port_B, -100);
        wait(800);
        stopMotor(PORT_A);
        stopMotor(Port_B);
        reset();
    }